package com.ruoyi.project.emr.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 确诊信息对象 emr_diagnosis
 * 
 * @author gzu
 * @date 2023-07-22
 */
public class EmrDiagnosis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 确诊信息表主键 */
    private Long id;

    /** 病历号 */
    @Excel(name = "病历号")
    private Long medicalRecordId;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String result;

    /** 治疗建议 */
    @Excel(name = "治疗建议")
    private String suggestion;

    /** 注意事项 */
    @Excel(name = "注意事项")
    private String attention;

    /** 确诊日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "确诊日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMedicalRecordId(Long medicalRecordId) 
    {
        this.medicalRecordId = medicalRecordId;
    }

    public Long getMedicalRecordId() 
    {
        return medicalRecordId;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setSuggestion(String suggestion) 
    {
        this.suggestion = suggestion;
    }

    public String getSuggestion() 
    {
        return suggestion;
    }
    public void setAttention(String attention) 
    {
        this.attention = attention;
    }

    public String getAttention() 
    {
        return attention;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicalRecordId", getMedicalRecordId())
            .append("result", getResult())
            .append("suggestion", getSuggestion())
            .append("attention", getAttention())
            .append("date", getDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
